-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Global EventList Support #24862
Implement Global EventList Support #24862
Conversation
PR #24862: Size comparison from 655d134 to dda3921 Increases above 0.2%:
Increases (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
Decreases (12 builds for bl702, cc13x2_26x2, psoc6)
Full report (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
Outdated
Show resolved
Hide resolved
examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
Outdated
Show resolved
Hide resolved
PR #24862: Size comparison from 655d134 to 59be2e9 Increases above 0.2%:
Increases (51 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
Decreases (12 builds for bl702, cc13x2_26x2, psoc6)
Full report (51 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap
Outdated
Show resolved
Hide resolved
examples/all-clusters-app/all-clusters-common/all-clusters-app.zap examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap examples/bridge-app/bridge-common/bridge-app.zap examples/lock-app/lock-common/lock-app.zap scripts/tools/zap/tests/inputs/all-clusters-app.zap scripts/tools/zap/tests/inputs/lighting-app.zap Note that all-clusters-minimal-app.zap enables only minimally required Events. All other updated ZAP files enable all mandatory and optional Events required by the defined Feature Map.
I Reverted Changes to ZAP files. Only updated the following ZAP files:
Note that all-clusters-minimal-app.zap enables only minimally required Events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emargolis I would have expected that the global event list change to show up in .matter files. Without that, codegen based on matter would not have access to the same information as .zap files.
Why is it not showing up?
As an example, if you look at lightingapp.matter, it contains things like:
so global attributes are expected to show up. |
@andy31415 I see that currently there is no consistency between *.matter and *.zap files and no clear understanding if Global attributes (GeneratedCommandList, AcceptedCommandList, EventList, AttributeList) should be included in these files. I suggest we deal with that in a follow up PR. |
examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Outdated
Show resolved
Hide resolved
…s Examples. This event is never emitted. Also run ZAP REGEN.
* Global Event List Support: All Manually Updated Files * Manually updated all *.zap files to include events for all clusters that have them. For each ZAP file was running ./scripts/tools/zap/run_zaptool.sh manually. * Automatically generated files. By running ./scripts/tools/zap_regen_all.py script. * Updated ZAP version to v2023.02.03-nightly * Update src/app/util/ember-compatibility-functions.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> * Update src/app/util/ember-compatibility-functions.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> * Updated all-clusters-minimal-app.zap to Include Only Minimul Number of Required Event. Exclude all optional events. * Updated TestAttributePathExpandIterator.cpp test * Add voided use of generatedEvents to prevent unused variable error when array is empty * Updated TestBasicInformation.yaml to support EventList * Rerun ZAP REGEN * Updated YAML tests to include EventList Attribute * ZAP REGEN * restyled * Reverted Changes to ZAP files. Only updated the following ZAP files: examples/all-clusters-app/all-clusters-common/all-clusters-app.zap examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap examples/bridge-app/bridge-common/bridge-app.zap examples/lock-app/lock-common/lock-app.zap scripts/tools/zap/tests/inputs/all-clusters-app.zap scripts/tools/zap/tests/inputs/lighting-app.zap Note that all-clusters-minimal-app.zap enables only minimally required Events. All other updated ZAP files enable all mandatory and optional Events required by the defined Feature Map. * ZAP REGEN * Removed ReachableChanged Basic Information Cluster Event from all Apps Examples. This event is never emitted. Also run ZAP REGEN. --------- Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Global Event List Support: All Manually Updated Files * Manually updated all *.zap files to include events for all clusters that have them. For each ZAP file was running ./scripts/tools/zap/run_zaptool.sh manually. * Automatically generated files. By running ./scripts/tools/zap_regen_all.py script. * Updated ZAP version to v2023.02.03-nightly * Update src/app/util/ember-compatibility-functions.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> * Update src/app/util/ember-compatibility-functions.cpp Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> * Updated all-clusters-minimal-app.zap to Include Only Minimul Number of Required Event. Exclude all optional events. * Updated TestAttributePathExpandIterator.cpp test * Add voided use of generatedEvents to prevent unused variable error when array is empty * Updated TestBasicInformation.yaml to support EventList * Rerun ZAP REGEN * Updated YAML tests to include EventList Attribute * ZAP REGEN * restyled * Reverted Changes to ZAP files. Only updated the following ZAP files: examples/all-clusters-app/all-clusters-common/all-clusters-app.zap examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.zap examples/bridge-app/bridge-common/bridge-app.zap examples/lock-app/lock-common/lock-app.zap scripts/tools/zap/tests/inputs/all-clusters-app.zap scripts/tools/zap/tests/inputs/lighting-app.zap Note that all-clusters-minimal-app.zap enables only minimally required Events. All other updated ZAP files enable all mandatory and optional Events required by the defined Feature Map. * ZAP REGEN * Removed ReachableChanged Basic Information Cluster Event from all Apps Examples. This event is never emitted. Also run ZAP REGEN. --------- Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
First commit: All manually updated files required to support Global EventList feature
Second commit: Manually updated all *.zap files in the CHIP repo to include events information. The process was manual by running ./scripts/tools/zap/run_zaptool.sh tool for each *.zap file then finding and enabling each event individually - very annoying :)
Third commit: Run ZAP REGEN tool
Fourth commit: Updated ZAP version to
v2023.02.03-nightly
These changes are related to the changes in ZAP repo:
project-chip/zap#914
Fixes: #15011